//
//  IGArtLibraryApi.m
//  jingdongfang
//
//  Created by MTiMac01 on 2018/3/29.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "IGArtLibraryApi.h"

@implementation IGArtLibraryApi

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPOST;
}

- (NSString *)requestUrl
{
    if (self.isCreatListLabel)
    {
        return @"drawlist/getDrawListLabel";
    }
    else
    {
        return @"find/getArtChoose.action";
    }
    
}

- (BOOL)isNeedHub
{
    return NO;
}

@end

@implementation IGArtDetailLibrary
+(JSONKeyMapper *)keyMapper
{
    return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{@"aId":@"id"}];
}

+ (BOOL)propertyIsOptional:(NSString *)propertyName
{
    return YES;
}

@end



@implementation IGArtLibrary
+(JSONKeyMapper *)keyMapper
{
    return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{@"aId":@"id"}];
}

+ (BOOL)propertyIsOptional:(NSString *)propertyName
{
    return YES;
}

@end

@implementation IGArtLibraryModel

@end;

@implementation IGArtLibraryResp

@end

